//
//  AboutViewController.m
//  ToWhere
//
//  Created by dllo on 15/11/21.
//  Copyright © 2015年 www.TE.com. All rights reserved.
//

#import "AboutViewController.h"

@interface AboutViewController ()

@end

@implementation AboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //titleView
    [self initTitleView];
    self.view.backgroundColor = [UIColor whiteColor];
}
#pragma mark init
- (void)initTitleView{

    UIView *titleView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 375 *kWidth, 65 *kHeight)];
    titleView.backgroundColor = [UIColor blackColor];
    [self.view addSubview:titleView];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 20 *kHeight, 375 *kWidth, 45 *kHeight)];
    label.text = @"关于我们";
    label.textColor = [UIColor whiteColor];
    label.font = [UIFont systemFontOfSize:20 *kWidth];
    label.textAlignment = NSTextAlignmentCenter;
    [titleView addSubview:label];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(10 *kWidth, 25 *kHeight, 25 *kWidth, 25 *kHeight);
    [button setImage:[UIImage imageNamed:@"Food_back"] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(dis) forControlEvents:UIControlEventTouchUpInside];
    [titleView addSubview:button];
    [titleView release];
    
    UIImageView *image = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"2"]];
    image.frame = CGRectMake(self.view.frame.size.width / 2 - 45 *kWidth, 140 *kHeight, 90 *kWidth, 90 *kWidth);
    image.layer.masksToBounds = YES;
    image.layer.cornerRadius = 8 *kWidth;
    [self.view addSubview:image];
    [image release];
    
    UILabel *name = [[UILabel alloc]initWithFrame:CGRectMake(self.view.frame.size.width / 2 - 45 *kWidth, 250 *kHeight, 150 *kWidth, 30 *kHeight)];
    name.text = @" 趣哪儿";
    name.textColor = [[UIColor blackColor]colorWithAlphaComponent:0.8];
    [self.view addSubview:name];
    [name release];
    
    UILabel *www = [[UILabel alloc] initWithFrame:CGRectMake(self.view.frame.size.width / 2 - 45 *kWidth, 285 *kHeight, 150 *kWidth, 20 *kHeight)];
    www.textColor = [[UIColor blackColor]colorWithAlphaComponent:0.4];
    www.text = @"www.TE.com";
    www.font = [UIFont systemFontOfSize:15 *kWidth];
    [self.view addSubview:www];
    [www release];
    UILabel *version = [[UILabel alloc] initWithFrame:CGRectMake(self.view.frame.size.width / 2 - 45 *kWidth, 310 *kHeight, 150 *kHeight, 20 *kHeight)];
    version.textColor = [[UIColor blackColor]colorWithAlphaComponent:0.4];
    version.text = @"版本：1.0";
    version.font = [UIFont systemFontOfSize:15 *kWidth];
    [self.view addSubview:version];
    [version release];
    
    UILabel *company = [[UILabel alloc] initWithFrame:CGRectMake(0, 580 *kHeight, 375 *kWidth, 20 *kHeight)];
    company.text = @"TE(大连)基金开发团队 版权所有";
    company.textAlignment = NSTextAlignmentCenter;
    company.textColor = [[UIColor blackColor]colorWithAlphaComponent:0.4];
    company.font = [UIFont systemFontOfSize:13 *kWidth];
    [self.view addSubview:company];
    [company release];
    
    UILabel *english = [[UILabel alloc] initWithFrame:CGRectMake(0, 600, 375 *kWidth, 20 *kHeight)];
    english.textColor = [[UIColor blackColor]colorWithAlphaComponent:0.4];
    english.textAlignment = NSTextAlignmentCenter;
    english.text = @"Copyright@2015-2016 Qunaer.All Rights Reserved";
    english.font = [UIFont systemFontOfSize:13 *kWidth];
    [self.view addSubview:english];
    [english release];
}
- (void)dis{

    [self dismissViewControllerAnimated:YES completion:nil];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
